﻿using ApplicationModels.A07.Chats;
using Commons.Responses;
using EntityModels.E07.Chats;

namespace IApplicationServices
{
    public interface IMessageService:IBaseApplicationService<int,Message,MessageAM>
    {
        /// <summary>
        /// 发送消息事用，需要更新会话部分功能
        /// </summary>
        /// <param name="conversation"></param>
        /// <param name="message"></param>
        /// <returns></returns>
        Task<MessageResponse> SendMessageAsync(ConversationAM conversation, MessageAM message);
    }
}
